import { createApp } from "vue";

import App from "./App.vue";
// 引入 ElementPlus
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
// svg 图标
// 全局引入svg
// import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import globalComponent from '@/components/index'
import "virtual:svg-icons-register";
import "@/styles/index.scss"
// 引入 axios
import axios from "axios"
// 引入路由
import router from './router';
const app = createApp(App);
// 引入仓库
import pinia from './store';
import '@/mock/user.ts'
app.use(pinia)
// 安装 elementPlus插件
app.use(ElementPlus);
app.use(router)
// 注册 全局组件
app.use(globalComponent)
// // 注册
// for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
// 	app.component(key,component)
// }
app.mount("#app");
  